﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Tracy.DataModel;
using Tracy;

namespace TracyGUI.UIData
{
    class ListBoxItemEntry
    {
        Entry _data;

        public Entry Data
        {
            get { return _data; }
            set { _data = value; }
        }
        public ListBoxItemEntry(Entry data )
        {
            _data = data;
        }

        public override string ToString()
        {
            if (Data == null) return "";
            else return String.Format("{0} ({1})",Data.Name, TracyBus.Instance.MediaFileProvider.GetUnwatchedCount(_data));
        }
    }
}
